<div class="row justify-content-center">
    <div class="col-8">
        <div *ngIf="orderItem">
            <h2><span>Order Item</span> {{ orderItem.id }}</h2>

            <hr>

            <jhi-alert-error></jhi-alert-error>

            <dl class="row-md jh-entity-details">
                <dt><span>Order Id</span></dt>
                <dd>
                    <span>{{ orderItem.orderId }}</span>
                </dd>
                <dt><span>Item Id</span></dt>
                <dd>
                    <span>{{ orderItem.itemId }}</span>
                </dd>
                <dt><span>Item Code</span></dt>
                <dd>
                    <span>{{ orderItem.itemCode }}</span>
                </dd>
                <dt><span>Item Name</span></dt>
                <dd>
                    <span>{{ orderItem.itemName }}</span>
                </dd>
                <dt><span>Item Type Id</span></dt>
                <dd>
                    <span>{{ orderItem.itemTypeId }}</span>
                </dd>
                <dt><span>Item Type Name</span></dt>
                <dd>
                    <span>{{ orderItem.itemTypeName }}</span>
                </dd>
                <dt><span>Offset</span></dt>
                <dd>
                    <span>{{ orderItem.offset }}</span>
                </dd>
                <dt><span>Short Profile</span></dt>
                <dd>
                    <span>{{ orderItem.shortProfile }}</span>
                </dd>
                <dt><span>Profile</span></dt>
                <dd>
                    <span>{{ orderItem.profile }}</span>
                </dd>
            </dl>

            <button type="submit"
                    (click)="previousState()"
                    class="btn btn-info">
                <fa-icon icon="arrow-left"></fa-icon>&nbsp;<span>Back</span>
            </button>

            <button type="button"
                    [routerLink]="['/order-item', orderItem.id, 'edit']"
                    class="btn btn-primary">
                <fa-icon icon="pencil-alt"></fa-icon>&nbsp;<span>Edit</span>
            </button>
        </div>
    </div>
</div>
